package com.inlycat.mapper;

import java.util.List;

import com.inlycat.entity.Comment;

/**
 * @author jarvan4dev@163.com
 * @since 2015年8月13日下午12:39:09
 * @category 影评mapper接口
 **/
public interface CommentMapper {
	
	/**
	 * 新增评论
	 * @param comment
	 * @return
	 */
	boolean insert(Comment comment) throws RuntimeException;
	
	/**
	 * 根据评论Id删除评论
	 * @param commentId
	 * @return
	 */
	boolean deleteById(Long commentId) throws RuntimeException;
	
	/**
	 * 根据视频Id查询评论
	 * @param videoId
	 * @return
	 */
	List<Comment> selectByVideoId(Long videoId) throws RuntimeException;

}
